<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="plugins/angularjs/angular.min.js"></script>

<script type="text/javascript">

	var app = angular.module('ngApp',[]);
	
	app.controller('myController',function($scope){
		
		$scope.add = function(){
			
			return $scope.x + $scope.y;
		}
	})
	
</script>

</head>

<body ng-app="ngApp" ng-controller="myController">
	<input ng-model='x' /><input ng-model='y' />{{add()}}

</body>
</html>